系統:ubuntu-22.04
需要安裝套件如下(Command):
sudo apt install software-properties-common -y
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.10
print('Hello, world!')
結果附圖:
參考來源:https://computingforgeeks.com/how-to-install-python-on-ubuntu-linux-system/